package com.cake.liulanxiangzhu.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 相册
 * @TableName admin_album
 */
@TableName(value ="admin_album")
@Data
public class AdminAlbumInsertDTO implements Serializable {
    /**
     * 记录id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 相册名称
     */
    @NotBlank(message = "必须输入相册名称")
    private String name;

    /**
     * 相册简介
     */
    @NotBlank(message = "必须输入相册简介")
    private String description;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}